package com.tsvetanv.model;

import java.util.Date;

public class Message {
	private String info;
	private Date publishDate;
	private CategoryMessage category;

	public Message() {
	}

	public Message(String info, Date publishDate, CategoryMessage category) {
		this.info = info;
		this.publishDate = publishDate;
		this.category = category;
	}

	public String getInfo() {
		return info;
	}

	public Date getPublishDate() {
		return publishDate;
	}

	public CategoryMessage getCategory() {
		return category;
	}

	@Override
	public String toString() {
		return getCategory() + ", " + getPublishDate() + ", " + getInfo();
	}
	
}
